<?php include('./templete/public/head.php')?>
<script src="_js/plug/jquery.raty.min.js"></script>
<body class="bgcolor">


<!--金点子详情-->
<div class="golden-idea-detail">
    <form class="myform">
    <div class="ideal-detail6">
        <ul class="comm-table-view">
            <li class="table-view-cell">
                <div>
                    逻辑维度(权重)
                </div>
                <div>
                    打分
                </div>
            </li>
            <li class="table-view-cell">
                <div>
                    问题隐蔽性(15%)
                </div>
                <div id='star1'>

                </div>
            </li>
            <li class="table-view-cell">
                <div>
                    实施难度(15%)
                </div>
                <div id='star2'>

                </div>
            </li>
            <li class="table-view-cell">
                <div>
                    实施工作量(15%)
                </div>
                <div id='star3'>

                </div>
            </li>
            <li class="table-view-cell">
                <div>
                    可推广性(15%)
                </div>
                <div id='star4'>

                </div>
            </li>
            <li class="table-view-cell">
                <div>
                    直接经济效益(25%)
                </div>
                <div id='star5'>

                </div>
            </li>
            <li class="table-view-cell">
                <div>
                    间接综合效益(15%)
                </div>
                <div id='star6'>

                </div>
            </li>
        </ul>
        <input type="hidden" name="id" value="<?php echo $id?>">
        <a href="#" class="detail6-save">保存</a>
    </div>
    </form>
</div>
<script>
    $('#star1').raty({
        num:10,
        path: '_images',
        scoreName:'score1'

    });
    $('#star2').raty({
        num:10,
        path: '_images',
        scoreName:'score2'

    });
    $('#star3').raty({
        num:10,
        path: '_images',
        scoreName:'score3'

    });
    $('#star4').raty({
        num:10,
        path: '_images',
        scoreName:'score4'

    });
    $('#star5').raty({
        num:10,
        path: '_images',
        scoreName:'score5'

    });
    $('#star6').raty({
        num:10,
        path: '_images',
        scoreName:'score6'

    });
    $('.detail6-save').click(function () {
        var param =$('.myform').serializeArray();
        let loading = layer.load(0, {shade: false}); //0代表加载的风格，支持0-2
        $.ajax({
            url:'<?php echo url('jdz/acceptor')?>',
            data:param,
            type:'post',
            success:function (data) {
                layer.closeAll();
                if(data.code==1){
                    layer.msg(data.msg);
                    setTimeout(function () {
                        location.href = '/index/jdz/detail/id/'+'<?php echo $id?>';
                    },1000)
                }else{
                    layer.msg(data.msg);
                }
            }
        })
    })

</script>


</body>


</html>